﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site2.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.Models.Seminar>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> - Seminars management
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
    <%= Model.SeminarCode%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="edit_own">
        <%= Html.ActionLink("Edit details", "Edit", new { id=Model.SeminarID }) %>
    </div>
    <h1>
        <%= Html.Encode(Model.SeminarCode) %>
        seminar details</h1>
    <fieldset id="ta_details">
        <div class="flota">
            <%= Html.Encode(Model.SeminarCode) %></div>
        <div class="flota">
            <%= Html.Encode(Model.SeminarCity) %></div>
        <div class="flota">
            <%= Html.Encode(Model.SeminarCenter) %></div>
    </fieldset>
    <fieldset id="ta_reporters">
        <legend>Participants</legend>
        <% if (Model.Participants.Count == 0) { %>
           <p class="lista_vacia">No participants have been created yet.</p>
        <% }
           else
           { %>
        <ul class="elements-list">
            <li class="first">
                <div class="cell110 flota">
                    Name</div>
                <div class="cell150 flota">
                    Surname</div>
                <div class="cell200 flota">
                    E-mail</div>
                <div class="cell110 flota_der">
                    Actions</div>
            </li>
            <% foreach (var item in Model.Participants)
               {%>
            <li>
                <div class="cell110 flota">
                    <%= item.ParticipantName%></div>
                <div class="cell150 flota">
                    <%= item.ParticipantSurname%></div>
                <div class="cell200 flota">
                    <a href="mailto:<%= item.ParticipantEmail %>" class="mailto">
                        <%= item.ParticipantEmail%></a></div>
                <div class="enlaces flota_der">
                    <%= Html.ActionLink("VIEW", "Details", "Participant", new { id = item.ParticipantID, seminarID = Model.SeminarID }, null)%>
                    <%= Html.ActionLink("Edit", "Edit", "Participant", new { id = item.ParticipantID, seminarID = Model.SeminarID }, null)%>
                </div>
            </li>
            <% } %>
        </ul>
        <% } %>
        <p class="enlaces">
            <%= Html.ActionLink("Create new participant", "Create", "Participant", new { SeminarID = Model.SeminarID }, null )%>
            
        </p>
    </fieldset>
    <div class="navigation">
        <p class="enlaces">
            <%= Html.ActionLink("Home", "IndexOrDetails", "ReporterManager", new { targetAreaID = Model.TargetArea.TargetAreaID }, null)%><br />
        </p>
        <p class="flota">
            <span class="flota">Manage results: </span>
            <%= Html.ActionLink("Tests", "Index", "TestResult", new { seminarID=Model.SeminarID }, null) %>
            <%= Html.ActionLink("Assessments", "Index", "Assessment", new { seminarID=Model.SeminarID }, null) %>
            <%= Html.ActionLink("Follow-up", "Index", "FollowUp", new { seminarID=Model.SeminarID }, null) %>
        </p>
        <div class="limpia"></div>
        <p class="flota">
            <span class="flota">Download EOD Seminar Reports (xls): </span>
            <%= Html.ActionLink("Participants", "Participants", "Seminar", new { SeminarID = Model.SeminarID }, null )%>
            <%= Html.ActionLink("Test results", "TestResults", "Seminar", new { SeminarID = Model.SeminarID }, null )%>
            <%= Html.ActionLink("Assessment results", "Assessments", "Seminar", new { SeminarID = Model.SeminarID }, null )%>
            <%= Html.ActionLink("Follow-up results", "FollowUps", "Seminar", new { SeminarID = Model.SeminarID }, null )%>
        </p>
         <div class="limpia"></div>
    </div>
</asp:Content>
